﻿using System;
using System.IO;

namespace LinuxPlaybackSound
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            using var dsp = File.OpenWrite("/dev/dsp");
            using var fs = File.OpenRead("x.wav");

            Console.WriteLine(fs.Length);

            var wav = new byte[fs.Length];
            dsp.Write(wav, 0, (int)fs.Length);

            Console.ReadKey();
        }
    }
}
